package com.jike.mahjong.dao;

import com.jike.mahjong.model.CoinRecordModel;
import com.jike.mahjong.model.Player;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 玩家Dao
 * Created by star on 2016/10/10.
 */
@Repository("playerDao")
public interface PlayerDao {


    public List<Player> queryPlayerInfo(Map<String,Object> para);

    public Integer countQueryPlayerInfo(Map<String,Object> para);

    public Integer updatePlayerState(Map<String,Object> para);

    public List<Player> queryPlayerOther(Map<String,Object> para);

    public Integer countQueryPlayerOther(Map<String,Object> para);

    public Integer insertRechargeRecord(CoinRecordModel model);

    public List<CoinRecordModel> queryRechargeRecord(Map<String,Object> para);

    public Integer countRechargeRecord(Map<String,Object> para);

    public List<CoinRecordModel> queryManagerRechargeRecord(Map<String,Object> para);

    public Integer countManagerRechargeRecord(Map<String,Object> para);




    public Integer addCoin(Map<String,Object> para);

    public Integer setManagerRole(Map<String,Object> para);

    public Player queryPlayerOtherById(Map<String,Object> para);

    public  Integer countPlayerByCondition(Map<String,Object> para);
}
